<%--
  Created by IntelliJ IDEA.
  User: 章鑫
  Date: 2022/9/7
  Time: 9:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>

</head>
<body>
    <%=request.getParameter("id")
    <%=request.getParameter("id")%>

<%--    加载javabean--%>
    <jsp:useBean id="user" class="com.zx.pojo.User"></jsp:useBean>

<%--给javabean赋值--%>
    <jsp:setProperty name="user" property="name" value="章鑫"></jsp:setProperty>
    <jsp:setProperty name="user" property="sex" value="男"></jsp:setProperty>

<%=user%>
</body>
</html>
